#import "interface.h"
#import <libxml/xmlstring.h>
#if TARGET_OS_IPHONE
#import <CFNetwork/CFNetwork.h>
#endif
#ifndef ADVANCED_AUTHENTICATION
#define ADVANCED_AUTHENTICATION 0
#endif
#if ADVANCED_AUTHENTICATION && TARGET_OS_IPHONE
#import <Security/Security.h>
#endif
@implementation interface
+ (void)initialize
{
	[[USGlobals sharedInstance].wsdlStandardNamespaces setObject:@"xs" forKey:@"http://www.w3.org/2001/XMLSchema"];
	[[USGlobals sharedInstance].wsdlStandardNamespaces setObject:@"interface" forKey:@"http://impl.communicate.jiajiao.com/"];
	[[USGlobals sharedInstance].wsdlStandardNamespaces setObject:@"tns1" forKey:@"http://communicate.jiajiao.com/"];
}
+ (interfaceSoapBinding *)interfaceSoapBinding
{
	return [[[interfaceSoapBinding alloc] initWithAddress:@"http://t.xuebaeasy.com:8080/ws/interface"] autorelease];
}
@end
@implementation interfaceSoapBinding
@synthesize address;
@synthesize timeout;
@synthesize logXMLInOut;
@synthesize ignoreEmptyResponse;
@synthesize cookies;
@synthesize customHeaders;
@synthesize soapSigner;
@synthesize sslManager;
+ (NSTimeInterval)defaultTimeout
{
	return 10;
}
- (id)init
{
	if((self = [super init])) {
		address = nil;
		cookies = nil;
		customHeaders = [NSMutableDictionary new];
		timeout = [[self class] defaultTimeout];
		logXMLInOut = NO;
		synchronousOperationComplete = NO;
	}
	
	return self;
}
- (id)initWithAddress:(NSString *)anAddress
{
	if((self = [self init])) {
		self.address = [NSURL URLWithString:anAddress];
	}
	
	return self;
}
- (NSString *)MIMEType
{
	return @"text/xml";
}
- (void)addCookie:(NSHTTPCookie *)toAdd
{
	if(toAdd != nil) {
		if(cookies == nil) cookies = [[NSMutableArray alloc] init];
		[cookies addObject:toAdd];
	}
}
- (interfaceSoapBindingResponse *)performSynchronousOperation:(interfaceSoapBindingOperation *)operation
{
	synchronousOperationComplete = NO;
	[operation start];
	
	// Now wait for response
	NSRunLoop *theRL = [NSRunLoop currentRunLoop];
	
	while (!synchronousOperationComplete && [theRL runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]);
	return operation.response;
}
- (void)performAsynchronousOperation:(interfaceSoapBindingOperation *)operation
{
	[operation start];
}
- (void) operation:(interfaceSoapBindingOperation *)operation completedWithResponse:(interfaceSoapBindingResponse *)response
{
	synchronousOperationComplete = YES;
}
- (interfaceSoapBindingResponse *)startLessonUsingParameters:(tns1_startLesson *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_startLesson*)[interfaceSoapBinding_startLesson alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)startLessonAsyncUsingParameters:(tns1_startLesson *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_startLesson*)[interfaceSoapBinding_startLesson alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)endLessonUsingParameters:(tns1_endLesson *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_endLesson*)[interfaceSoapBinding_endLesson alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)endLessonAsyncUsingParameters:(tns1_endLesson *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_endLesson*)[interfaceSoapBinding_endLesson alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTodayCourseRecord_studentUsingParameters:(tns1_getTodayCourseRecord_student *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTodayCourseRecord_student*)[interfaceSoapBinding_getTodayCourseRecord_student alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTodayCourseRecord_studentAsyncUsingParameters:(tns1_getTodayCourseRecord_student *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTodayCourseRecord_student*)[interfaceSoapBinding_getTodayCourseRecord_student alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseRecordByDatesUsingParameters:(tns1_getCourseRecordByDates *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseRecordByDates*)[interfaceSoapBinding_getCourseRecordByDates alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseRecordByDatesAsyncUsingParameters:(tns1_getCourseRecordByDates *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseRecordByDates*)[interfaceSoapBinding_getCourseRecordByDates alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)addValidatecodeSmsInfoUsingParameters:(tns1_addValidatecodeSmsInfo *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_addValidatecodeSmsInfo*)[interfaceSoapBinding_addValidatecodeSmsInfo alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)addValidatecodeSmsInfoAsyncUsingParameters:(tns1_addValidatecodeSmsInfo *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_addValidatecodeSmsInfo*)[interfaceSoapBinding_addValidatecodeSmsInfo alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getContactWithParentIdAndTeacherIdUsingParameters:(tns1_getContactWithParentIdAndTeacherId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getContactWithParentIdAndTeacherId*)[interfaceSoapBinding_getContactWithParentIdAndTeacherId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getContactWithParentIdAndTeacherIdAsyncUsingParameters:(tns1_getContactWithParentIdAndTeacherId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getContactWithParentIdAndTeacherId*)[interfaceSoapBinding_getContactWithParentIdAndTeacherId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseDetailByTeacherSetIdUsingParameters:(tns1_getCourseDetailByTeacherSetId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseDetailByTeacherSetId*)[interfaceSoapBinding_getCourseDetailByTeacherSetId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseDetailByTeacherSetIdAsyncUsingParameters:(tns1_getCourseDetailByTeacherSetId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseDetailByTeacherSetId*)[interfaceSoapBinding_getCourseDetailByTeacherSetId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)userRegisterForParentUsingParameters:(tns1_userRegisterForParent *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_userRegisterForParent*)[interfaceSoapBinding_userRegisterForParent alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)userRegisterForParentAsyncUsingParameters:(tns1_userRegisterForParent *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_userRegisterForParent*)[interfaceSoapBinding_userRegisterForParent alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getcourseByTchIdAndDateUsingParameters:(tns1_getcourseByTchIdAndDate *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getcourseByTchIdAndDate*)[interfaceSoapBinding_getcourseByTchIdAndDate alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getcourseByTchIdAndDateAsyncUsingParameters:(tns1_getcourseByTchIdAndDate *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getcourseByTchIdAndDate*)[interfaceSoapBinding_getcourseByTchIdAndDate alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getUserWalletInfoByUserIdUsingParameters:(tns1_getUserWalletInfoByUserId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getUserWalletInfoByUserId*)[interfaceSoapBinding_getUserWalletInfoByUserId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getUserWalletInfoByUserIdAsyncUsingParameters:(tns1_getUserWalletInfoByUserId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getUserWalletInfoByUserId*)[interfaceSoapBinding_getUserWalletInfoByUserId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getBasicInfoByParentIdUsingParameters:(tns1_getBasicInfoByParentId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getBasicInfoByParentId*)[interfaceSoapBinding_getBasicInfoByParentId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getBasicInfoByParentIdAsyncUsingParameters:(tns1_getBasicInfoByParentId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getBasicInfoByParentId*)[interfaceSoapBinding_getBasicInfoByParentId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCouponsInfoByuserIdUsingParameters:(tns1_getCouponsInfoByuserId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCouponsInfoByuserId*)[interfaceSoapBinding_getCouponsInfoByuserId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCouponsInfoByuserIdAsyncUsingParameters:(tns1_getCouponsInfoByuserId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCouponsInfoByuserId*)[interfaceSoapBinding_getCouponsInfoByuserId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)addAccessByIdUsingParameters:(tns1_addAccessById *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_addAccessById*)[interfaceSoapBinding_addAccessById alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)addAccessByIdAsyncUsingParameters:(tns1_addAccessById *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_addAccessById*)[interfaceSoapBinding_addAccessById alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)updateOrderDetailUsingParameters:(tns1_updateOrderDetail *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_updateOrderDetail*)[interfaceSoapBinding_updateOrderDetail alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)updateOrderDetailAsyncUsingParameters:(tns1_updateOrderDetail *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_updateOrderDetail*)[interfaceSoapBinding_updateOrderDetail alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseInfoUsingParameters:(tns1_getCourseInfo *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseInfo*)[interfaceSoapBinding_getCourseInfo alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseInfoAsyncUsingParameters:(tns1_getCourseInfo *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseInfo*)[interfaceSoapBinding_getCourseInfo alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getOrderByTsIdUsingParameters:(tns1_getOrderByTsId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getOrderByTsId*)[interfaceSoapBinding_getOrderByTsId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getOrderByTsIdAsyncUsingParameters:(tns1_getOrderByTsId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getOrderByTsId*)[interfaceSoapBinding_getOrderByTsId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTeacherSetingUsingParameters:(tns1_getTeacherSeting *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTeacherSeting*)[interfaceSoapBinding_getTeacherSeting alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTeacherSetingAsyncUsingParameters:(tns1_getTeacherSeting *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTeacherSeting*)[interfaceSoapBinding_getTeacherSeting alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getAllTchSetInfoByTchIdUsingParameters:(tns1_getAllTchSetInfoByTchId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getAllTchSetInfoByTchId*)[interfaceSoapBinding_getAllTchSetInfoByTchId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getAllTchSetInfoByTchIdAsyncUsingParameters:(tns1_getAllTchSetInfoByTchId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getAllTchSetInfoByTchId*)[interfaceSoapBinding_getAllTchSetInfoByTchId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)addClassFromParentUsingParameters:(tns1_addClassFromParent *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_addClassFromParent*)[interfaceSoapBinding_addClassFromParent alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)addClassFromParentAsyncUsingParameters:(tns1_addClassFromParent *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_addClassFromParent*)[interfaceSoapBinding_addClassFromParent alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getUnFinishOrderListUsingParameters:(tns1_getUnFinishOrderList *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getUnFinishOrderList*)[interfaceSoapBinding_getUnFinishOrderList alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getUnFinishOrderListAsyncUsingParameters:(tns1_getUnFinishOrderList *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getUnFinishOrderList*)[interfaceSoapBinding_getUnFinishOrderList alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getGradeInfoUsingParameters:(tns1_getGradeInfo *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getGradeInfo*)[interfaceSoapBinding_getGradeInfo alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getGradeInfoAsyncUsingParameters:(tns1_getGradeInfo *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getGradeInfo*)[interfaceSoapBinding_getGradeInfo alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseRecordByDates_stdudentUsingParameters:(tns1_getCourseRecordByDates_stdudent *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseRecordByDates_stdudent*)[interfaceSoapBinding_getCourseRecordByDates_stdudent alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseRecordByDates_stdudentAsyncUsingParameters:(tns1_getCourseRecordByDates_stdudent *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseRecordByDates_stdudent*)[interfaceSoapBinding_getCourseRecordByDates_stdudent alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTeacherSetedDownPullUsingParameters:(tns1_getTeacherSetedDownPull *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTeacherSetedDownPull*)[interfaceSoapBinding_getTeacherSetedDownPull alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTeacherSetedDownPullAsyncUsingParameters:(tns1_getTeacherSetedDownPull *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTeacherSetedDownPull*)[interfaceSoapBinding_getTeacherSetedDownPull alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getOrderByPrIdUsingParameters:(tns1_getOrderByPrId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getOrderByPrId*)[interfaceSoapBinding_getOrderByPrId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getOrderByPrIdAsyncUsingParameters:(tns1_getOrderByPrId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getOrderByPrId*)[interfaceSoapBinding_getOrderByPrId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getBillByuserIdUsingParameters:(tns1_getBillByuserId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getBillByuserId*)[interfaceSoapBinding_getBillByuserId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getBillByuserIdAsyncUsingParameters:(tns1_getBillByuserId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getBillByuserId*)[interfaceSoapBinding_getBillByuserId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)addUserStoreUsingParameters:(tns1_addUserStore *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_addUserStore*)[interfaceSoapBinding_addUserStore alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)addUserStoreAsyncUsingParameters:(tns1_addUserStore *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_addUserStore*)[interfaceSoapBinding_addUserStore alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseByTchIdUsingParameters:(tns1_getCourseByTchId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseByTchId*)[interfaceSoapBinding_getCourseByTchId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseByTchIdAsyncUsingParameters:(tns1_getCourseByTchId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseByTchId*)[interfaceSoapBinding_getCourseByTchId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseInfoByTsIDUsingParameters:(tns1_getCourseInfoByTsID *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseInfoByTsID*)[interfaceSoapBinding_getCourseInfoByTsID alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseInfoByTsIDAsyncUsingParameters:(tns1_getCourseInfoByTsID *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseInfoByTsID*)[interfaceSoapBinding_getCourseInfoByTsID alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)updateUserPasswordUsingParameters:(tns1_updateUserPassword *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_updateUserPassword*)[interfaceSoapBinding_updateUserPassword alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)updateUserPasswordAsyncUsingParameters:(tns1_updateUserPassword *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_updateUserPassword*)[interfaceSoapBinding_updateUserPassword alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTodayClassTimeUsingParameters:(tns1_getTodayClassTime *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTodayClassTime*)[interfaceSoapBinding_getTodayClassTime alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTodayClassTimeAsyncUsingParameters:(tns1_getTodayClassTime *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTodayClassTime*)[interfaceSoapBinding_getTodayClassTime alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)teacherSetCourseTimeUsingParameters:(tns1_teacherSetCourseTime *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_teacherSetCourseTime*)[interfaceSoapBinding_teacherSetCourseTime alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)teacherSetCourseTimeAsyncUsingParameters:(tns1_teacherSetCourseTime *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_teacherSetCourseTime*)[interfaceSoapBinding_teacherSetCourseTime alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getFinishOrderListUsingParameters:(tns1_getFinishOrderList *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getFinishOrderList*)[interfaceSoapBinding_getFinishOrderList alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getFinishOrderListAsyncUsingParameters:(tns1_getFinishOrderList *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getFinishOrderList*)[interfaceSoapBinding_getFinishOrderList alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTeacherSetedUsingParameters:(tns1_getTeacherSeted *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTeacherSeted*)[interfaceSoapBinding_getTeacherSeted alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTeacherSetedAsyncUsingParameters:(tns1_getTeacherSeted *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTeacherSeted*)[interfaceSoapBinding_getTeacherSeted alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)uploadImageUsingParameters:(tns1_uploadImage *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_uploadImage*)[interfaceSoapBinding_uploadImage alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)uploadImageAsyncUsingParameters:(tns1_uploadImage *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_uploadImage*)[interfaceSoapBinding_uploadImage alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)updateParentInfoUsingParameters:(tns1_updateParentInfo *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_updateParentInfo*)[interfaceSoapBinding_updateParentInfo alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)updateParentInfoAsyncUsingParameters:(tns1_updateParentInfo *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_updateParentInfo*)[interfaceSoapBinding_updateParentInfo alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTeacherSetFilterUsingParameters:(tns1_getTeacherSetFilter *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTeacherSetFilter*)[interfaceSoapBinding_getTeacherSetFilter alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTeacherSetFilterAsyncUsingParameters:(tns1_getTeacherSetFilter *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTeacherSetFilter*)[interfaceSoapBinding_getTeacherSetFilter alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getAllCourseByTchIdUsingParameters:(tns1_getAllCourseByTchId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getAllCourseByTchId*)[interfaceSoapBinding_getAllCourseByTchId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getAllCourseByTchIdAsyncUsingParameters:(tns1_getAllCourseByTchId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getAllCourseByTchId*)[interfaceSoapBinding_getAllCourseByTchId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)uploadUserPhotoByUrlUsingParameters:(tns1_uploadUserPhotoByUrl *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_uploadUserPhotoByUrl*)[interfaceSoapBinding_uploadUserPhotoByUrl alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)uploadUserPhotoByUrlAsyncUsingParameters:(tns1_uploadUserPhotoByUrl *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_uploadUserPhotoByUrl*)[interfaceSoapBinding_uploadUserPhotoByUrl alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)userFeedbackUsingParameters:(tns1_userFeedback *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_userFeedback*)[interfaceSoapBinding_userFeedback alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)userFeedbackAsyncUsingParameters:(tns1_userFeedback *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_userFeedback*)[interfaceSoapBinding_userFeedback alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)updateClassTimeUsingParameters:(tns1_updateClassTime *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_updateClassTime*)[interfaceSoapBinding_updateClassTime alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)updateClassTimeAsyncUsingParameters:(tns1_updateClassTime *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_updateClassTime*)[interfaceSoapBinding_updateClassTime alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTheMonthClassTimeUsingParameters:(tns1_getTheMonthClassTime *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTheMonthClassTime*)[interfaceSoapBinding_getTheMonthClassTime alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTheMonthClassTimeAsyncUsingParameters:(tns1_getTheMonthClassTime *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTheMonthClassTime*)[interfaceSoapBinding_getTheMonthClassTime alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getOrderDetailByOrderIdUsingParameters:(tns1_getOrderDetailByOrderId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getOrderDetailByOrderId*)[interfaceSoapBinding_getOrderDetailByOrderId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getOrderDetailByOrderIdAsyncUsingParameters:(tns1_getOrderDetailByOrderId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getOrderDetailByOrderId*)[interfaceSoapBinding_getOrderDetailByOrderId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getAllClassTimeUsingParameters:(tns1_getAllClassTime *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getAllClassTime*)[interfaceSoapBinding_getAllClassTime alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getAllClassTimeAsyncUsingParameters:(tns1_getAllClassTime *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getAllClassTime*)[interfaceSoapBinding_getAllClassTime alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)loginCheckUsingParameters:(tns1_loginCheck *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_loginCheck*)[interfaceSoapBinding_loginCheck alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)loginCheckAsyncUsingParameters:(tns1_loginCheck *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_loginCheck*)[interfaceSoapBinding_loginCheck alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getClassTimeDetailByIdUsingParameters:(tns1_getClassTimeDetailById *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getClassTimeDetailById*)[interfaceSoapBinding_getClassTimeDetailById alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getClassTimeDetailByIdAsyncUsingParameters:(tns1_getClassTimeDetailById *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getClassTimeDetailById*)[interfaceSoapBinding_getClassTimeDetailById alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseRecordInfoUsingParameters:(tns1_getCourseRecordInfo *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseRecordInfo*)[interfaceSoapBinding_getCourseRecordInfo alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseRecordInfoAsyncUsingParameters:(tns1_getCourseRecordInfo *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseRecordInfo*)[interfaceSoapBinding_getCourseRecordInfo alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)userRegisterForTeacherUsingParameters:(tns1_userRegisterForTeacher *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_userRegisterForTeacher*)[interfaceSoapBinding_userRegisterForTeacher alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)userRegisterForTeacherAsyncUsingParameters:(tns1_userRegisterForTeacher *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_userRegisterForTeacher*)[interfaceSoapBinding_userRegisterForTeacher alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getCourseDetailUsingParameters:(tns1_getCourseDetail *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getCourseDetail*)[interfaceSoapBinding_getCourseDetail alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getCourseDetailAsyncUsingParameters:(tns1_getCourseDetail *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getCourseDetail*)[interfaceSoapBinding_getCourseDetail alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)updateCrTchSummaryUsingParameters:(tns1_updateCrTchSummary *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_updateCrTchSummary*)[interfaceSoapBinding_updateCrTchSummary alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)updateCrTchSummaryAsyncUsingParameters:(tns1_updateCrTchSummary *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_updateCrTchSummary*)[interfaceSoapBinding_updateCrTchSummary alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)addOrderByParentIdUsingParameters:(tns1_addOrderByParentId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_addOrderByParentId*)[interfaceSoapBinding_addOrderByParentId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)addOrderByParentIdAsyncUsingParameters:(tns1_addOrderByParentId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_addOrderByParentId*)[interfaceSoapBinding_addOrderByParentId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getAdvertisingByAdtypeUsingParameters:(tns1_getAdvertisingByAdtype *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getAdvertisingByAdtype*)[interfaceSoapBinding_getAdvertisingByAdtype alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getAdvertisingByAdtypeAsyncUsingParameters:(tns1_getAdvertisingByAdtype *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getAdvertisingByAdtype*)[interfaceSoapBinding_getAdvertisingByAdtype alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTeacherInfoByTeacherIdUsingParameters:(tns1_getTeacherInfoByTeacherId *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTeacherInfoByTeacherId*)[interfaceSoapBinding_getTeacherInfoByTeacherId alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTeacherInfoByTeacherIdAsyncUsingParameters:(tns1_getTeacherInfoByTeacherId *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTeacherInfoByTeacherId*)[interfaceSoapBinding_getTeacherInfoByTeacherId alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getAuditResultUsingParameters:(tns1_getAuditResult *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getAuditResult*)[interfaceSoapBinding_getAuditResult alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getAuditResultAsyncUsingParameters:(tns1_getAuditResult *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getAuditResult*)[interfaceSoapBinding_getAuditResult alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)addCourseClassByTeacherUsingParameters:(tns1_addCourseClassByTeacher *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_addCourseClassByTeacher*)[interfaceSoapBinding_addCourseClassByTeacher alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)addCourseClassByTeacherAsyncUsingParameters:(tns1_addCourseClassByTeacher *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_addCourseClassByTeacher*)[interfaceSoapBinding_addCourseClassByTeacher alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)startClassByTeacherUsingParameters:(tns1_startClassByTeacher *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_startClassByTeacher*)[interfaceSoapBinding_startClassByTeacher alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)startClassByTeacherAsyncUsingParameters:(tns1_startClassByTeacher *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_startClassByTeacher*)[interfaceSoapBinding_startClassByTeacher alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)updateTeacherUsingParameters:(tns1_updateTeacher *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_updateTeacher*)[interfaceSoapBinding_updateTeacher alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)updateTeacherAsyncUsingParameters:(tns1_updateTeacher *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_updateTeacher*)[interfaceSoapBinding_updateTeacher alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getTeachersBySubjectUsingParameters:(tns1_getTeachersBySubject *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getTeachersBySubject*)[interfaceSoapBinding_getTeachersBySubject alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getTeachersBySubjectAsyncUsingParameters:(tns1_getTeachersBySubject *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getTeachersBySubject*)[interfaceSoapBinding_getTeachersBySubject alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)getFinishOrderListDownPullUsingParameters:(tns1_getFinishOrderListDownPull *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_getFinishOrderListDownPull*)[interfaceSoapBinding_getFinishOrderListDownPull alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)getFinishOrderListDownPullAsyncUsingParameters:(tns1_getFinishOrderListDownPull *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_getFinishOrderListDownPull*)[interfaceSoapBinding_getFinishOrderListDownPull alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)payOrderSuccessUsingParameters:(tns1_payOrderSuccess *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_payOrderSuccess*)[interfaceSoapBinding_payOrderSuccess alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)payOrderSuccessAsyncUsingParameters:(tns1_payOrderSuccess *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_payOrderSuccess*)[interfaceSoapBinding_payOrderSuccess alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (interfaceSoapBindingResponse *)showTchBasInfoUsingParameters:(tns1_showTchBasInfo *)aParameters  headerElements:(NSDictionary *)headerElements
{
	return [self performSynchronousOperation:[[(interfaceSoapBinding_showTchBasInfo*)[interfaceSoapBinding_showTchBasInfo alloc] initWithBinding:self delegate:self
																							parameters:aParameters
																							headerElements:headerElements
																							] autorelease]];
}
- (void)showTchBasInfoAsyncUsingParameters:(tns1_showTchBasInfo *)aParameters  headerElements:(NSDictionary *)headerElements delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
{
	[self performAsynchronousOperation: [[(interfaceSoapBinding_showTchBasInfo*)[interfaceSoapBinding_showTchBasInfo alloc] initWithBinding:self delegate:responseDelegate
																							 parameters:aParameters
																							headerElements:headerElements
																							 ] autorelease]];
}
- (void)sendHTTPCallUsingBody:(NSString *)outputBody soapAction:(NSString *)soapAction forOperation:(interfaceSoapBindingOperation *)operation
{
    if (!outputBody) {
        NSError * err = [NSError errorWithDomain:@"interfaceSoapBindingNULLRequestExcpetion"
                                            code:0
                                        userInfo:nil];
        
        [operation connection:nil didFailWithError:err];
        return;
    }
	NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:self.address 
																												 cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
																										 timeoutInterval:self.timeout];
	NSData *bodyData = [outputBody dataUsingEncoding:NSUTF8StringEncoding];
	
	if(cookies != nil) {
		[request setAllHTTPHeaderFields:[NSHTTPCookie requestHeaderFieldsWithCookies:cookies]];
	}
	[request setValue:@"wsdl2objc" forHTTPHeaderField:@"User-Agent"];
	[request setValue:soapAction forHTTPHeaderField:@"SOAPAction"];
	[request setValue:[[self MIMEType] stringByAppendingString:@"; charset=utf-8"] forHTTPHeaderField:@"Content-Type"];
	// ERICBE: cast to unsigned long to prevent warnings about implicit cast of NSInteger
	[request setValue:[NSString stringWithFormat:@"%lu", (unsigned long) [bodyData length]] forHTTPHeaderField:@"Content-Length"];
	[request setValue:self.address.host forHTTPHeaderField:@"Host"];
	for (NSString *eachHeaderField in [self.customHeaders allKeys]) {
		[request setValue:[self.customHeaders objectForKey:eachHeaderField] forHTTPHeaderField:eachHeaderField];
	}
	[request setHTTPMethod: @"POST"];
	// set version 1.1 - how?
	[request setHTTPBody: bodyData];
		
	if(self.logXMLInOut) {
		NSLog(@"OutputHeaders:\n%@", [request allHTTPHeaderFields]);
		NSLog(@"OutputBody:\n%@", outputBody);
	}
	
	NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:operation];
	
	operation.urlConnection = connection;
	[connection release];
}
- (void) dealloc
{
	[soapSigner release];
	// ERICBE: Assign sslManager property to nil to release it - avoids a compiler warning.
	// [sslManager release];
	self.sslManager = nil;
	[address release];
	[cookies release];
	[customHeaders release];
	[super dealloc];
}
@end
@implementation interfaceSoapBindingOperation
@synthesize binding;
@synthesize response;
@synthesize delegate;
@synthesize responseData;
@synthesize urlConnection;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)aDelegate
{
	if ((self = [super init])) {
		self.binding = aBinding;
		response = nil;
		self.delegate = aDelegate;
		self.responseData = nil;
		self.urlConnection = nil;
	}
	
	return self;
}
- (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace {
    return [binding.sslManager canAuthenticateForAuthenticationMethod:protectionSpace.authenticationMethod];
}
-(void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
{
	if (![binding.sslManager authenticateForChallenge:challenge]) {
		[[challenge sender] cancelAuthenticationChallenge:challenge];
	}
}
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)urlResponse
{
	NSHTTPURLResponse *httpResponse;
	if ([urlResponse isKindOfClass:[NSHTTPURLResponse class]]) {
		httpResponse = (NSHTTPURLResponse *) urlResponse;
	} else {
		httpResponse = nil;
	}
	
	if(self.binding.logXMLInOut) {
		NSLog(@"ResponseStatus: %ld\n", (long)[httpResponse statusCode]);
		NSLog(@"ResponseHeaders:\n%@", [httpResponse allHeaderFields]);
	}
    NSInteger contentLength = [[[httpResponse allHeaderFields] objectForKey:@"Content-Length"] integerValue];
	
	if ([urlResponse.MIMEType rangeOfString:[self.binding MIMEType]].length == 0) {
		if ((self.binding.ignoreEmptyResponse == NO) || (contentLength != 0)) {
			NSError *error = nil;
			[connection cancel];
			if ([httpResponse statusCode] >= 400) {
				NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:[NSHTTPURLResponse localizedStringForStatusCode:[httpResponse statusCode]],NSLocalizedDescriptionKey,
																			  httpResponse.URL, NSURLErrorKey,nil];
				error = [NSError errorWithDomain:@"interfaceSoapBindingResponseHTTP" code:[httpResponse statusCode] userInfo:userInfo];
			} else {
				NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
														[NSString stringWithFormat: @"Unexpected response MIME type to SOAP call:%@", urlResponse.MIMEType],NSLocalizedDescriptionKey,
																			  httpResponse.URL, NSURLErrorKey,nil];
				error = [NSError errorWithDomain:@"interfaceSoapBindingResponseHTTP" code:1 userInfo:userInfo];
			}
				
			[self connection:connection didFailWithError:error];
		} else {
            [delegate operation:self completedWithResponse:response];
		}
	}
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
	if (responseData == nil) {
		responseData = [data mutableCopy];
	} else {
		[responseData appendData:data];
	}
}
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
{
	if (binding.logXMLInOut) {
		NSLog(@"ResponseError:\n%@", error);
	}
	response.error = error;
	[delegate operation:self completedWithResponse:response];
}
- (void)dealloc
{
	[binding release];
	[response release];
	delegate = nil;
	[responseData release];
	[urlConnection release];
	
	[super dealloc];
}
@end
@implementation interfaceSoapBinding_startLesson
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_startLesson *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"startLesson"];
		[bodyKeys addObject:@"startLesson"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "startLessonResponse")) {
									tns1_startLessonResponse *bodyObject = [tns1_startLessonResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_endLesson
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_endLesson *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"endLesson"];
		[bodyKeys addObject:@"endLesson"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "endLessonResponse")) {
									tns1_endLessonResponse *bodyObject = [tns1_endLessonResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTodayCourseRecord_student
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTodayCourseRecord_student *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTodayCourseRecord_student"];
		[bodyKeys addObject:@"getTodayCourseRecord_student"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTodayCourseRecord_studentResponse")) {
									tns1_getTodayCourseRecord_studentResponse *bodyObject = [tns1_getTodayCourseRecord_studentResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseRecordByDates
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseRecordByDates *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseRecordByDates"];
		[bodyKeys addObject:@"getCourseRecordByDates"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseRecordByDatesResponse")) {
									tns1_getCourseRecordByDatesResponse *bodyObject = [tns1_getCourseRecordByDatesResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_addValidatecodeSmsInfo
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_addValidatecodeSmsInfo *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"addValidatecodeSmsInfo"];
		[bodyKeys addObject:@"addValidatecodeSmsInfo"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "addValidatecodeSmsInfoResponse")) {
									tns1_addValidatecodeSmsInfoResponse *bodyObject = [tns1_addValidatecodeSmsInfoResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getContactWithParentIdAndTeacherId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getContactWithParentIdAndTeacherId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getContactWithParentIdAndTeacherId"];
		[bodyKeys addObject:@"getContactWithParentIdAndTeacherId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getContactWithParentIdAndTeacherIdResponse")) {
									tns1_getContactWithParentIdAndTeacherIdResponse *bodyObject = [tns1_getContactWithParentIdAndTeacherIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseDetailByTeacherSetId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseDetailByTeacherSetId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseDetailByTeacherSetId"];
		[bodyKeys addObject:@"getCourseDetailByTeacherSetId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseDetailByTeacherSetIdResponse")) {
									tns1_getCourseDetailByTeacherSetIdResponse *bodyObject = [tns1_getCourseDetailByTeacherSetIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_userRegisterForParent
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_userRegisterForParent *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"userRegisterForParent"];
		[bodyKeys addObject:@"userRegisterForParent"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "userRegisterForParentResponse")) {
									tns1_userRegisterForParentResponse *bodyObject = [tns1_userRegisterForParentResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getcourseByTchIdAndDate
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getcourseByTchIdAndDate *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getcourseByTchIdAndDate"];
		[bodyKeys addObject:@"getcourseByTchIdAndDate"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getcourseByTchIdAndDateResponse")) {
									tns1_getcourseByTchIdAndDateResponse *bodyObject = [tns1_getcourseByTchIdAndDateResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getUserWalletInfoByUserId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getUserWalletInfoByUserId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getUserWalletInfoByUserId"];
		[bodyKeys addObject:@"getUserWalletInfoByUserId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getUserWalletInfoByUserIdResponse")) {
									tns1_getUserWalletInfoByUserIdResponse *bodyObject = [tns1_getUserWalletInfoByUserIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getBasicInfoByParentId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getBasicInfoByParentId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getBasicInfoByParentId"];
		[bodyKeys addObject:@"getBasicInfoByParentId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getBasicInfoByParentIdResponse")) {
									tns1_getBasicInfoByParentIdResponse *bodyObject = [tns1_getBasicInfoByParentIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCouponsInfoByuserId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCouponsInfoByuserId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCouponsInfoByuserId"];
		[bodyKeys addObject:@"getCouponsInfoByuserId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCouponsInfoByuserIdResponse")) {
									tns1_getCouponsInfoByuserIdResponse *bodyObject = [tns1_getCouponsInfoByuserIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_addAccessById
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_addAccessById *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"addAccessById"];
		[bodyKeys addObject:@"addAccessById"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "addAccessByIdResponse")) {
									tns1_addAccessByIdResponse *bodyObject = [tns1_addAccessByIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_updateOrderDetail
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_updateOrderDetail *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"updateOrderDetail"];
		[bodyKeys addObject:@"updateOrderDetail"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "updateOrderDetailResponse")) {
									tns1_updateOrderDetailResponse *bodyObject = [tns1_updateOrderDetailResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseInfo
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseInfo *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseInfo"];
		[bodyKeys addObject:@"getCourseInfo"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseInfoResponse")) {
									tns1_getCourseInfoResponse *bodyObject = [tns1_getCourseInfoResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getOrderByTsId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getOrderByTsId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getOrderByTsId"];
		[bodyKeys addObject:@"getOrderByTsId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getOrderByTsIdResponse")) {
									tns1_getOrderByTsIdResponse *bodyObject = [tns1_getOrderByTsIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTeacherSeting
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTeacherSeting *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTeacherSeting"];
		[bodyKeys addObject:@"getTeacherSeting"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTeacherSetingResponse")) {
									tns1_getTeacherSetingResponse *bodyObject = [tns1_getTeacherSetingResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getAllTchSetInfoByTchId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getAllTchSetInfoByTchId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getAllTchSetInfoByTchId"];
		[bodyKeys addObject:@"getAllTchSetInfoByTchId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getAllTchSetInfoByTchIdResponse")) {
									tns1_getAllTchSetInfoByTchIdResponse *bodyObject = [tns1_getAllTchSetInfoByTchIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_addClassFromParent
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_addClassFromParent *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"addClassFromParent"];
		[bodyKeys addObject:@"addClassFromParent"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "addClassFromParentResponse")) {
									tns1_addClassFromParentResponse *bodyObject = [tns1_addClassFromParentResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getUnFinishOrderList
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getUnFinishOrderList *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getUnFinishOrderList"];
		[bodyKeys addObject:@"getUnFinishOrderList"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getUnFinishOrderListResponse")) {
									tns1_getUnFinishOrderListResponse *bodyObject = [tns1_getUnFinishOrderListResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getGradeInfo
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getGradeInfo *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getGradeInfo"];
		[bodyKeys addObject:@"getGradeInfo"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getGradeInfoResponse")) {
									tns1_getGradeInfoResponse *bodyObject = [tns1_getGradeInfoResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseRecordByDates_stdudent
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseRecordByDates_stdudent *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseRecordByDates_stdudent"];
		[bodyKeys addObject:@"getCourseRecordByDates_stdudent"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseRecordByDates_stdudentResponse")) {
									tns1_getCourseRecordByDates_stdudentResponse *bodyObject = [tns1_getCourseRecordByDates_stdudentResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTeacherSetedDownPull
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTeacherSetedDownPull *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTeacherSetedDownPull"];
		[bodyKeys addObject:@"getTeacherSetedDownPull"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTeacherSetedDownPullResponse")) {
									tns1_getTeacherSetedDownPullResponse *bodyObject = [tns1_getTeacherSetedDownPullResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getOrderByPrId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getOrderByPrId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getOrderByPrId"];
		[bodyKeys addObject:@"getOrderByPrId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getOrderByPrIdResponse")) {
									tns1_getOrderByPrIdResponse *bodyObject = [tns1_getOrderByPrIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getBillByuserId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getBillByuserId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getBillByuserId"];
		[bodyKeys addObject:@"getBillByuserId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getBillByuserIdResponse")) {
									tns1_getBillByuserIdResponse *bodyObject = [tns1_getBillByuserIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_addUserStore
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_addUserStore *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"addUserStore"];
		[bodyKeys addObject:@"addUserStore"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "addUserStoreResponse")) {
									tns1_addUserStoreResponse *bodyObject = [tns1_addUserStoreResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseByTchId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseByTchId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseByTchId"];
		[bodyKeys addObject:@"getCourseByTchId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseByTchIdResponse")) {
									tns1_getCourseByTchIdResponse *bodyObject = [tns1_getCourseByTchIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseInfoByTsID
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseInfoByTsID *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseInfoByTsID"];
		[bodyKeys addObject:@"getCourseInfoByTsID"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseInfoByTsIDResponse")) {
									tns1_getCourseInfoByTsIDResponse *bodyObject = [tns1_getCourseInfoByTsIDResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_updateUserPassword
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_updateUserPassword *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"updateUserPassword"];
		[bodyKeys addObject:@"updateUserPassword"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "updateUserPasswordResponse")) {
									tns1_updateUserPasswordResponse *bodyObject = [tns1_updateUserPasswordResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTodayClassTime
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTodayClassTime *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTodayClassTime"];
		[bodyKeys addObject:@"getTodayClassTime"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTodayClassTimeResponse")) {
									tns1_getTodayClassTimeResponse *bodyObject = [tns1_getTodayClassTimeResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_teacherSetCourseTime
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_teacherSetCourseTime *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"teacherSetCourseTime"];
		[bodyKeys addObject:@"teacherSetCourseTime"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "teacherSetCourseTimeResponse")) {
									tns1_teacherSetCourseTimeResponse *bodyObject = [tns1_teacherSetCourseTimeResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getFinishOrderList
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getFinishOrderList *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getFinishOrderList"];
		[bodyKeys addObject:@"getFinishOrderList"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getFinishOrderListResponse")) {
									tns1_getFinishOrderListResponse *bodyObject = [tns1_getFinishOrderListResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTeacherSeted
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTeacherSeted *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTeacherSeted"];
		[bodyKeys addObject:@"getTeacherSeted"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTeacherSetedResponse")) {
									tns1_getTeacherSetedResponse *bodyObject = [tns1_getTeacherSetedResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_uploadImage
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_uploadImage *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"uploadImage"];
		[bodyKeys addObject:@"uploadImage"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "uploadImageResponse")) {
									tns1_uploadImageResponse *bodyObject = [tns1_uploadImageResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_updateParentInfo
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_updateParentInfo *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"updateParentInfo"];
		[bodyKeys addObject:@"updateParentInfo"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "updateParentInfoResponse")) {
									tns1_updateParentInfoResponse *bodyObject = [tns1_updateParentInfoResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTeacherSetFilter
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTeacherSetFilter *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTeacherSetFilter"];
		[bodyKeys addObject:@"getTeacherSetFilter"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTeacherSetFilterResponse")) {
									tns1_getTeacherSetFilterResponse *bodyObject = [tns1_getTeacherSetFilterResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getAllCourseByTchId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getAllCourseByTchId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getAllCourseByTchId"];
		[bodyKeys addObject:@"getAllCourseByTchId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getAllCourseByTchIdResponse")) {
									tns1_getAllCourseByTchIdResponse *bodyObject = [tns1_getAllCourseByTchIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_uploadUserPhotoByUrl
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_uploadUserPhotoByUrl *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"uploadUserPhotoByUrl"];
		[bodyKeys addObject:@"uploadUserPhotoByUrl"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "uploadUserPhotoByUrlResponse")) {
									tns1_uploadUserPhotoByUrlResponse *bodyObject = [tns1_uploadUserPhotoByUrlResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_userFeedback
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_userFeedback *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"userFeedback"];
		[bodyKeys addObject:@"userFeedback"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "userFeedbackResponse")) {
									tns1_userFeedbackResponse *bodyObject = [tns1_userFeedbackResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_updateClassTime
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_updateClassTime *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"updateClassTime"];
		[bodyKeys addObject:@"updateClassTime"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "updateClassTimeResponse")) {
									tns1_updateClassTimeResponse *bodyObject = [tns1_updateClassTimeResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTheMonthClassTime
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTheMonthClassTime *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTheMonthClassTime"];
		[bodyKeys addObject:@"getTheMonthClassTime"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTheMonthClassTimeResponse")) {
									tns1_getTheMonthClassTimeResponse *bodyObject = [tns1_getTheMonthClassTimeResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getOrderDetailByOrderId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getOrderDetailByOrderId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getOrderDetailByOrderId"];
		[bodyKeys addObject:@"getOrderDetailByOrderId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getOrderDetailByOrderIdResponse")) {
									tns1_getOrderDetailByOrderIdResponse *bodyObject = [tns1_getOrderDetailByOrderIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getAllClassTime
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getAllClassTime *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getAllClassTime"];
		[bodyKeys addObject:@"getAllClassTime"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getAllClassTimeResponse")) {
									tns1_getAllClassTimeResponse *bodyObject = [tns1_getAllClassTimeResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_loginCheck
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_loginCheck *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"loginCheck"];
		[bodyKeys addObject:@"loginCheck"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "loginCheckResponse")) {
									tns1_loginCheckResponse *bodyObject = [tns1_loginCheckResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getClassTimeDetailById
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getClassTimeDetailById *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getClassTimeDetailById"];
		[bodyKeys addObject:@"getClassTimeDetailById"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getClassTimeDetailByIdResponse")) {
									tns1_getClassTimeDetailByIdResponse *bodyObject = [tns1_getClassTimeDetailByIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseRecordInfo
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseRecordInfo *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseRecordInfo"];
		[bodyKeys addObject:@"getCourseRecordInfo"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseRecordInfoResponse")) {
									tns1_getCourseRecordInfoResponse *bodyObject = [tns1_getCourseRecordInfoResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_userRegisterForTeacher
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_userRegisterForTeacher *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"userRegisterForTeacher"];
		[bodyKeys addObject:@"userRegisterForTeacher"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "userRegisterForTeacherResponse")) {
									tns1_userRegisterForTeacherResponse *bodyObject = [tns1_userRegisterForTeacherResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getCourseDetail
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getCourseDetail *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getCourseDetail"];
		[bodyKeys addObject:@"getCourseDetail"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getCourseDetailResponse")) {
									tns1_getCourseDetailResponse *bodyObject = [tns1_getCourseDetailResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_updateCrTchSummary
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_updateCrTchSummary *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"updateCrTchSummary"];
		[bodyKeys addObject:@"updateCrTchSummary"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "updateCrTchSummaryResponse")) {
									tns1_updateCrTchSummaryResponse *bodyObject = [tns1_updateCrTchSummaryResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_addOrderByParentId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_addOrderByParentId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"addOrderByParentId"];
		[bodyKeys addObject:@"addOrderByParentId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "addOrderByParentIdResponse")) {
									tns1_addOrderByParentIdResponse *bodyObject = [tns1_addOrderByParentIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getAdvertisingByAdtype
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getAdvertisingByAdtype *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getAdvertisingByAdtype"];
		[bodyKeys addObject:@"getAdvertisingByAdtype"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getAdvertisingByAdtypeResponse")) {
									tns1_getAdvertisingByAdtypeResponse *bodyObject = [tns1_getAdvertisingByAdtypeResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTeacherInfoByTeacherId
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTeacherInfoByTeacherId *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTeacherInfoByTeacherId"];
		[bodyKeys addObject:@"getTeacherInfoByTeacherId"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTeacherInfoByTeacherIdResponse")) {
									tns1_getTeacherInfoByTeacherIdResponse *bodyObject = [tns1_getTeacherInfoByTeacherIdResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getAuditResult
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getAuditResult *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getAuditResult"];
		[bodyKeys addObject:@"getAuditResult"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getAuditResultResponse")) {
									tns1_getAuditResultResponse *bodyObject = [tns1_getAuditResultResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_addCourseClassByTeacher
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_addCourseClassByTeacher *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"addCourseClassByTeacher"];
		[bodyKeys addObject:@"addCourseClassByTeacher"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "addCourseClassByTeacherResponse")) {
									tns1_addCourseClassByTeacherResponse *bodyObject = [tns1_addCourseClassByTeacherResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_startClassByTeacher
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_startClassByTeacher *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"startClassByTeacher"];
		[bodyKeys addObject:@"startClassByTeacher"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "startClassByTeacherResponse")) {
									tns1_startClassByTeacherResponse *bodyObject = [tns1_startClassByTeacherResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_updateTeacher
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_updateTeacher *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"updateTeacher"];
		[bodyKeys addObject:@"updateTeacher"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "updateTeacherResponse")) {
									tns1_updateTeacherResponse *bodyObject = [tns1_updateTeacherResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getTeachersBySubject
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getTeachersBySubject *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getTeachersBySubject"];
		[bodyKeys addObject:@"getTeachersBySubject"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getTeachersBySubjectResponse")) {
									tns1_getTeachersBySubjectResponse *bodyObject = [tns1_getTeachersBySubjectResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_getFinishOrderListDownPull
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_getFinishOrderListDownPull *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"getFinishOrderListDownPull"];
		[bodyKeys addObject:@"getFinishOrderListDownPull"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "getFinishOrderListDownPullResponse")) {
									tns1_getFinishOrderListDownPullResponse *bodyObject = [tns1_getFinishOrderListDownPullResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_payOrderSuccess
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_payOrderSuccess *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"payOrderSuccess"];
		[bodyKeys addObject:@"payOrderSuccess"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "payOrderSuccessResponse")) {
									tns1_payOrderSuccessResponse *bodyObject = [tns1_payOrderSuccessResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
@implementation interfaceSoapBinding_showTchBasInfo
@synthesize parameters;
@synthesize headerElements;
- (id)initWithBinding:(interfaceSoapBinding *)aBinding delegate:(id<interfaceSoapBindingResponseDelegate>)responseDelegate
parameters:(tns1_showTchBasInfo *)aParameters headerElements:(NSDictionary *)headers
{
	if((self = [super initWithBinding:aBinding delegate:responseDelegate])) {
		self.parameters = aParameters;
		self.headerElements = headers;
	}
	
	return self;
}
- (void)dealloc
{
	if(parameters != nil) [parameters release];
	if(headerElements != nil) [headerElements release];
	
	[super dealloc];
}
- (void)main
{
	[response autorelease];
	response = [interfaceSoapBindingResponse new];
	
	interfaceSoapBinding_envelope *envelope = [interfaceSoapBinding_envelope sharedInstance];
	
	NSMutableDictionary *bodyElements = nil;
	NSMutableArray *bodyKeys = nil;
	bodyElements = [NSMutableDictionary dictionary];
	bodyKeys = [NSMutableArray array];
	id obj = nil;
	if(parameters != nil) obj = parameters;
	if(obj != nil) {
		[bodyElements setObject:obj forKey:@"showTchBasInfo"];
		[bodyKeys addObject:@"showTchBasInfo"];
	}
	
	NSString *operationXMLString = [envelope serializedFormUsingHeaderElements:headerElements bodyElements:bodyElements bodyKeys:bodyKeys];
	operationXMLString = binding.soapSigner ? [binding.soapSigner signRequest:operationXMLString] : operationXMLString;
	
	[binding sendHTTPCallUsingBody:operationXMLString soapAction:@"" forOperation:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
	if (responseData != nil && delegate != nil)
	{
		xmlDocPtr doc;
		xmlNodePtr cur;
		
		if (binding.logXMLInOut) {
			NSLog(@"ResponseBody:\n%@", [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]);
		}
		
#if !TARGET_OS_IPHONE && (!defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
	// Not yet defined in 10.5 libxml
	#define XML_PARSE_COMPACT 0
#endif
    // EricBe: Put explicit conversion since [responseData length] is NSInteger but xmlReadMemory wants int.
	doc = xmlReadMemory([responseData bytes], (int) [responseData length], NULL, NULL, XML_PARSE_COMPACT | XML_PARSE_NOBLANKS);
		
		if (doc == NULL) {
			NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Errors while parsing returned XML" forKey:NSLocalizedDescriptionKey];
			
			response.error = [NSError errorWithDomain:@"interfaceSoapBindingResponseXML" code:1 userInfo:userInfo];
			[delegate operation:self completedWithResponse:response];
		} else {
			cur = xmlDocGetRootElement(doc);
			cur = cur->children;
			
			for( ; cur != NULL ; cur = cur->next) {
				if(cur->type == XML_ELEMENT_NODE) {
					
					if(xmlStrEqual(cur->name, (const xmlChar *) "Body")) {
						NSMutableArray *responseBodyParts = [NSMutableArray array];
						
						xmlNodePtr bodyNode;
						for(bodyNode=cur->children ; bodyNode != NULL ; bodyNode = bodyNode->next) {
							if(cur->type == XML_ELEMENT_NODE) {
								if(xmlStrEqual(bodyNode->name, (const xmlChar *) "showTchBasInfoResponse")) {
									tns1_showTchBasInfoResponse *bodyObject = [tns1_showTchBasInfoResponse deserializeNode:bodyNode];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
								if ((bodyNode->ns != nil && xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix)) && 
									xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) {
                                    NSDictionary *exceptions = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                @"interface_Exception", @"Exception",
                                                                nil];
									SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode expectedExceptions:exceptions];
									//NSAssert1(bodyObject != nil, @"Errors while parsing body %s", bodyNode->name);
									if (bodyObject != nil) [responseBodyParts addObject:bodyObject];
								}
							}
						}
						
						response.bodyParts = responseBodyParts;
					}
				}
			}
			
			xmlFreeDoc(doc);
		}
		
		xmlCleanupParser();
		[delegate operation:self completedWithResponse:response];
	}
}
@end
static interfaceSoapBinding_envelope *interfaceSoapBindingSharedEnvelopeInstance = nil;
@implementation interfaceSoapBinding_envelope
+ (interfaceSoapBinding_envelope *)sharedInstance
{
	if(interfaceSoapBindingSharedEnvelopeInstance == nil) {
		interfaceSoapBindingSharedEnvelopeInstance = [interfaceSoapBinding_envelope new];
	}
	
	return interfaceSoapBindingSharedEnvelopeInstance;
}
- (NSString *)serializedFormUsingHeaderElements:(NSDictionary *)headerElements bodyElements:(NSDictionary *)bodyElements bodyKeys:(NSArray *)bodyKeys
{
	xmlDocPtr doc;
	
	doc = xmlNewDoc((const xmlChar*)XML_DEFAULT_VERSION);
	if (doc == NULL) {
		NSLog(@"Error creating the xml document tree");
		return @"";
	}
	
	xmlNodePtr root = xmlNewDocNode(doc, NULL, (const xmlChar*)"Envelope", NULL);
	xmlDocSetRootElement(doc, root);
	
	xmlNsPtr soapEnvelopeNs = xmlNewNs(root, (const xmlChar*)"http://schemas.xmlsoap.org/soap/envelope/", (const xmlChar*)"soap");
	xmlSetNs(root, soapEnvelopeNs);
	
	xmlNsPtr xslNs = xmlNewNs(root, (const xmlChar*)"http://www.w3.org/1999/XSL/Transform", (const xmlChar*)"xsl");
	xmlNewNs(root, (const xmlChar*)"http://www.w3.org/2001/XMLSchema-instance", (const xmlChar*)"xsi");
	
	xmlNewNsProp(root, xslNs, (const xmlChar*)"version", (const xmlChar*)"1.0");
	
	xmlNewNs(root, (const xmlChar*)"http://www.w3.org/2001/XMLSchema", (const xmlChar*)"xs");
	xmlNewNs(root, (const xmlChar*)"http://impl.communicate.jiajiao.com/", (const xmlChar*)"interface");
	xmlNewNs(root, (const xmlChar*)"http://communicate.jiajiao.com/", (const xmlChar*)"tns1");
	
	if((headerElements != nil) && ([headerElements count] > 0)) {
		xmlNodePtr headerNode = xmlNewDocNode(doc, soapEnvelopeNs, (const xmlChar*)"Header", NULL);
		xmlAddChild(root, headerNode);
		
		for(NSString *key in [headerElements allKeys]) {
			id header = [headerElements objectForKey:key];
			xmlAddChild(headerNode, [header xmlNodeForDoc:doc elementName:key elementNSPrefix:nil]);
		}
	}
	
	if((bodyElements != nil) && ([bodyElements count] > 0)) {
		xmlNodePtr bodyNode = xmlNewDocNode(doc, soapEnvelopeNs, (const xmlChar*)"Body", NULL);
		xmlAddChild(root, bodyNode);
		
		for(NSString *key in bodyKeys) {
			id body = [bodyElements objectForKey:key];
			xmlAddChild(bodyNode, [body xmlNodeForDoc:doc elementName:key elementNSPrefix:nil]);
		}
	}
	
	xmlChar *buf;
	int size;
	xmlDocDumpFormatMemory(doc, &buf, &size, 1);
	
	NSString *serializedForm = [NSString stringWithCString:(const char*)buf encoding:NSUTF8StringEncoding];
	xmlFree(buf);
	
	xmlFreeDoc(doc);	
	return serializedForm;
}
@end
@implementation interfaceSoapBindingResponse
@synthesize headers;
@synthesize bodyParts;
@synthesize error;
- (id)init
{
	if((self = [super init])) {
		headers = nil;
		bodyParts = nil;
		error = nil;
	}
	
	return self;
}
- (void)dealloc {
	self.headers = nil;
	self.bodyParts = nil;
	self.error = nil;	
	[super dealloc];
}
@end
